Using... in non Joomla ariticles

Search
Other Pre-Sale questions
Forum

Using {source} ... {source} in non Joomla ariticles

Hakan Lager's Avatar Hakan Lager
Hi,

I intend to use {source} ... {source} in the Joomla Extension Event Booking, by Ossolution Teeam.

They use standard editors like JCE to compose mail content but the content is not saved in the ordinary Joomla content db table

I this possible by default or possible to configure some how?

Regards
Hakan
Peter van Westen's Avatar Peter van Westen ADMIN
Must probably that Event Booking does not pass the email content through the Joomla content and system plugins before sending it.
So you won't be able to use any plugins inside the content.

But you'll have to ask them about it.
Please post a rating at the Joomla! Extensions Directory
Hakan Lager's Avatar Hakan Lager
Ok Thank you. I will ask them.

Regards
Hakan
Hakan Lager's Avatar Hakan Lager
Hi,

I think I saw somewhere that sorcerer loaded include files twice by mistake in some Joommla 3.x version
and it seems the same error occurs also in Joomla 4.3.2.

I do like this in my article:

{source}
<?php
include JPATH_SITE . "/sourcerer/error.php"; // require_once seems to solve the problem
?>
{/source}

And got an error like this if I try to use/define an function in error.php

[Sat Jul 01 17:40:43.410879 2023] [proxy_fcgi:error] [pid 1892763:tid 140410013652736] PHP Fatal error:
Cannot redeclare categoryToGroup() (previously declared in /bitnami/joomla/sourcerer/error.php:46) in /bitnami/joomla/sourcerer/error.php on line 46’,


/ Digiloo
Peter van Westen's Avatar Peter van Westen ADMIN
Like the comment in your code says, use require_one.

If the file contains code you do want to call multiple times,
Then place the classes in a different file and require that once inside error.php or in your php code inside the Sourcerer tags.

Read: docs4.regularlabs.com/sourcerer/the-basics/including-files
Please post a rating at the Joomla! Extensions Directory
You can only post on this forum if you log in